﻿using ShadowCode.Injection.Base;

namespace ShadowCode.Injection.Options;
public class OptionsClassUnit(TransformData data, ClassDeclarationSyntax classSyntax)
    : UnitBase(data)
{
    private INamedTypeSymbol? type;

    /// <summary>
    /// 实现的类型
    /// </summary>
    public INamedTypeSymbol Type => type ??= GetAttributeType(classSyntax);
}